diff --git a/2019/index.php b/2019/index.php index 2e91031..584ec19 100644 --- a/2019/index.php +++ b/2019/index.php @@ -1,462 +1,379 @@ . require 'load.php'; enqueue_js('jquery'); enqueue_js('typed'); enqueue_js('leaflet'); enqueue_js('leaflet.init'); enqueue_css('leaflet'); $conference = FullConference::factoryFromUID( CURRENT_CONFERENCE_UID ) ->queryRow(); $conference or die_with_404(); FORCE_PERMALINK and $conference->forceConferencePermalink(); template( 'header', [ 'conference' => $conference, ] ); ?> - - -
-
-
- -
-

Sabato 26 Ottobre 2019

-

Linux Day Torino

-
', - '' - ) ?>
- - -
- - -
-
-
- -

-

+

aula base, l'aula per sistemisti o programmatori e divertiti!" ) ?>

-

+

getConferenceStart(); // query all the events that belongs to this conference // and that belongs to this chapter // order by date $events = FullEvent::factoryByConference( $conference->getConferenceID() ) ->whereStr( Track::UID, $track ) ->orderBy( Event::START, 'ASC' ) ->queryResults(); ?> get( Event::START ) ?>

getEventTitle() ) ?>

hasEventSubtitle() ): ?>

getEventSubtitle() ) ?>

 getEventStart( 'H:i' ) ?> 
hasEventAbstract() ): ?>

getEventAbstractHTML() ?>

 

isEventEditable() ): ?> getFullEventEditURL(), __( "Modifica" ) ) ?>
add( $one_hour ); $last_event_end = clone $last_event_start; $last_event_end->add( $one_hour ); ?>

printLocationLeaflet() ?>

diff --git a/2019/template/header.php b/2019/template/header.php index 1f6d6c1..9e45c10 100644 --- a/2019/template/header.php +++ b/2019/template/header.php @@ -1,65 +1,70 @@ . /* * This is the header of the website */ /* * Args that should be passed: * * $conference (object) Current conference */ // do not visit directly defined( 'ABSPATH' ) or exit; ?> <?= esc_html( $conference->getConferenceTitle() ) ?> "> + + $conference, ] ) ?> + + + diff --git a/2019/template/intro.php b/2019/template/intro.php new file mode 100644 index 0000000..d24cbca --- /dev/null +++ b/2019/template/intro.php @@ -0,0 +1,68 @@ +. + +/* + * This is the introduction of the website + */ + +// do not visit directly +defined( 'ABSPATH' ) or exit; +?> + +
+
+
+ +
+

+

Linux Day Torino

+
', + '' + ) ?>
+ + +
+ + +
+
+
+ + diff --git a/2019/user.php b/2019/user.php index 26506a1..4f54f8d 100644 --- a/2019/user.php +++ b/2019/user.php @@ -1,253 +1,276 @@ . require 'load.php'; $conference = FullConference::factoryFromUID( CURRENT_CONFERENCE_UID ) ->queryRow(); $conference or die_with_404(); $user = User::factoryByUID( $_GET['uid'] ) ->queryRow(); $user or die_with_404(); FORCE_PERMALINK && $user->forceUserPermalink(); template( 'header', [ 'conference' => $conference, 'title' => $user->getUserFullname(), 'url' => $user->getUserURL(), 'og' => [ 'image' => $user->getUserImage(), 'type' => 'profile', 'profile:first_name' => $user->user_name, 'profile:last_name' => $user->user_surname ] ] ); ?> - hasPermissionToEditUser() ): ?> -

getUserUID()}", - __("Modifica") . icon('edit', 'left') - ) ?>

- -
- - -
-
-
- has( User::WEBSITE ) ): ?> - - - <?php
-							echo esc_attr( $user->getUserFullname() )
-						?> - has( User::WEBSITE ) ): ?> - - -
-
+
+
+
+
- - user_site ): ?> -
-
+ hasPermissionToEditUser() ): ?>

user_site, - __("Sito personale") . icon('contact_mail', 'right'), - null, - 'btn waves-effect purple darken-2', - 'target="_blank"' + CURRENT_CONFERENCE_PATH . "/user-edit.php?uid={$user->getUserUID()}", + __("Modifica") . icon('edit', 'left') ) ?>

-
+ +
- -
- +
+
+ +
+
+
- -
+ +
+
+
+ has( User::WEBSITE ) ): ?> + + + <?php
+								echo esc_attr( $user->getUserFullname() )
+							?> + has( User::WEBSITE ) ): ?> + + +
+
- - factoryUserSkills() - ->queryGenerator(); - ?> - valid() ): ?> -
-
-

- -
getSkillCode() ?>
- + + user_site ): ?> +
+
+

user_site, + __("Sito personale") . icon('contact_mail', 'right'), + null, + 'btn waves-effect purple darken-2', + 'target="_blank"' + ) ?>

+
+ +
- - + - - hasUserLovelicense() ): ?> -
-
- getUserLovelicense() ?> -

%s."), - $license->getLink() - ) ?>

+ +
+ + + factoryUserSkills() + ->queryGenerator(); + ?> + valid() ): ?> +
+
+

+ +
getSkillCode() ?>
+ +
-
- - + + + + + hasUserLovelicense() ): ?> +
+
+ getUserLovelicense() ?> +

%s."), + $license->getLink() + ) ?>

+
+
+ + +
+
-
+
- - hasUserBio() ): ?> -
-
-

- getUserBioHTML( ['p' => 'flow-text'] ) ?> -
- - +
+
-
+ + hasUserBio() ): ?> +
+

+ getUserBioHTML( ['p' => 'flow-text'] ) ?> +
+ + + +
+

+ + whereConference( $conference ) + ->whereUser( $user ) + ->joinTrackChapterRoom() + ->queryGenerator(); + ?> + valid() ): ?> + + + + + + + + + + + + + + + + + + + + + +
getEventURL(), + sprintf( + "%s", + esc_html( $title = $event->getEventTitle() ) + ), + sprintf( + __("Vedi %s"), + $title + ) + ) ?>getChapterName() ) ?>getTrackName() ) ?> + + getLocationName() ) ?> +
+ getRoomName() ) ?> +
+ %s (il %s)"), + $event->getEventStart("H:i"), + $event->getEventStart("d/m/Y") + ) ?>
+ getEventHumanStart() ?> +
+ +

+ +
+
+
-
-

+
+
whereConference( $conference ) - ->whereUser( $user ) - ->joinTrackChapterRoom() + ->joinLocation() + ->whereConferenceNot( $conference ) + ->whereUser( $user ) + ->orderBy( Event::START, 'DESC' ) ->queryGenerator(); ?> valid() ): ?> - - - - - - - - - - - - - - - - - - - - - -
getEventURL(), - sprintf( - "%s", - esc_html( $title = $event->getEventTitle() ) - ), - sprintf( - __("Vedi %s"), - $title - ) - ) ?>getChapterName() ) ?>getTrackName() ) ?> - - getLocationName() ) ?> -
- getRoomName() ) ?> -
- %s (il %s)"), - $event->getEventStart("H:i"), - $event->getEventStart("d/m/Y") - ) ?>
- getEventHumanStart() ?> -
- -

+
+

+ + + + + + + + + + + +
getEventTitle() ) ?>getConferenceTitle() ) ?> + + getLocationName() ) ?> +
+
+ %s (il %s)"), + $event->getEventStart("H:i"), + $event->getEventStart("d/m/Y") + ) ?>
+ getEventHumanStart() ?> +
+
-
- joinLocation() - ->whereConferenceNot( $conference ) - ->whereUser( $user ) - ->orderBy( Event::START, 'DESC' ) - ->queryGenerator(); - ?> - valid() ): ?> + + isUserSocial() ): ?> +
-

- - - - - - - - - - - -
getEventTitle() ) ?>getConferenceTitle() ) ?> - - getLocationName() ) ?> -
-
- %s (il %s)"), - $event->getEventStart("H:i"), - $event->getEventStart("d/m/Y") - ) ?>
- getEventHumanStart() ?> -
-
- - - - isUserSocial() ): ?> -
-
-

-
- has( User::RSS ) and UserSocialBox::spawn( $user, "RSS", $user->get( User::RSS ), 'home.png' ); - $user->has( User::FACEBOOK ) and UserSocialBox::spawn( $user, "Facebook", $user->getUserFacebruck(), 'facebook_logo.png' ); - $user->has( User::GOOGLE_PLUS ) and UserSocialBox::spawn( $user, "Google+", $user->getUserGuggolpluz(), 'google.png' ); - $user->has( User::TWITTER ) and UserSocialBox::spawn( $user, "Twitter", $user->getUserTuitt(), 'twitter.png' ); - $user->has( User::LINKEDIN ) and UserSocialBox::spawn( $user, "Linkedin", $user->getUserLinkeddon(), 'linkedin.png' ); - $user->has( User::GITHUB ) and UserSocialBox::spawn( $user, "Github", $user->getUserGithubbo(), 'github.png' ); - ?> +

+
+ has( User::RSS ) and UserSocialBox::spawn( $user, "RSS", $user->get( User::RSS ), 'home.png' ); + $user->has( User::FACEBOOK ) and UserSocialBox::spawn( $user, "Facebook", $user->getUserFacebruck(), 'facebook_logo.png' ); + $user->has( User::GOOGLE_PLUS ) and UserSocialBox::spawn( $user, "Google+", $user->getUserGuggolpluz(), 'google.png' ); + $user->has( User::TWITTER ) and UserSocialBox::spawn( $user, "Twitter", $user->getUserTuitt(), 'twitter.png' ); + $user->has( User::LINKEDIN ) and UserSocialBox::spawn( $user, "Linkedin", $user->getUserLinkeddon(), 'linkedin.png' ); + $user->has( User::GITHUB ) and UserSocialBox::spawn( $user, "Github", $user->getUserGithubbo(), 'github.png' ); + ?> +
+ +
- - +
+